/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import '../../../../../styles/variables.less';

.workflow-history-widget {
  border-radius: @size-xs;
  .workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: @size-md;

    .workflow-title {
      font-weight: @font-medium;
      color: @grey-800;
      margin: 0;
    }

    .workflow-counter {
      color: @grey-600;
      font-size: @size-sm;
    }
  }

  .workflow-progress {
    margin-bottom: @size-mlg;

    .workflow-steps {
      display: flex;
      gap: @size-xxs;
      align-items: center;

      .workflow-step {
        height: @size-xs;
        flex: 1;
        border-radius: @size-xxs;
        transition: background-color 0.2s ease;
        min-width: @size-xs;

        &.completed {
          background: @primary-color;
        }

        &.pending {
          background: @grey-200;
        }
      }
    }
  }
  .timeline-container:not(:last-child) .horizontal-line {
    position: absolute;
    top: @size-sm;
    left: 9px;
    bottom: -17px;
    width: 1px;
    background-color: @blue-23;
  }
  .timeline-container:last-child .horizontal-line {
    display: none;
  }
  .workflow-timeline {
    gap: @size-sm;
    .bedge-icon {
      padding: @size-xxs;
      border-radius: 50%;
    }
    .completed-icon {
      color: @primary-color;

      background-color: @blue-23;
    }
    .pending-icon {
      background-color: @orange-3;

      svg path {
        stroke: @red-20;
      }
    }
    .timeline-container {
      .stage-name {
        color: @grey-800;
        font-size: @size-sm;
      }
      .stage-time {
        color: @grey-400;
        font-size: 10px;
      }
    }
  }
}
.workflow-history-widget-rightPanel {
  background-color: @white;
  padding: 18px 20px 12px 20px;
}
